package com.avocado.base.validator.resources;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ResourcesAddCodeValidator.class)
public @interface ResourcesAddCodeValidation {

    String message() default "代码已在系统中存在，请使用其它代码。";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};

}
